<!--
 * @Description: 超出部分显示方式
 * @Author: charles
 * @Date: 2021-08-12 09:50:20
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-17 18:59:07
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>overflow</title>
  <style>
    .outer {
      width: 500px;
      height: 300px;
      background-color: mediumseagreen;
      margin: 0 auto;
      /* overflow: hidden; */
      /* overflow-x: scroll;
      overflow-y: scroll; */
      overflow:auto
    }
    .outer > .inner {
      width: 100px;
      height: 1000px;
      background-color: pink;
      /* opacity: .6; */
    }
    input:focus {
      /* border-color:  purple;
      outline-color: pink;
      outline-width: 2px;
      outline-style: solid;
      outline-offset: 1px; */
      border-style: dotted;
    }
  </style>
</head>
<body>
  <input type="text">
  <div class="outer">
    <div class="inner">
      hello
      <div style="height: 100px;"></div> 
      world
    </div>
  </div>
</body>
</html>
